<?php
namespace app\home\model;
use think\Model;

class Mumber extends Model
{
     public static  $Instance;
      public static function Instance(){
          if(!self::$Instance){
               self::$Instance=new self();
          }
          return self::$Instance;
      }
      public static  function mumberTrade(){
        $res= self::Instance()
             ->alias('mum')
            ->where('mum.uid','in','1,2,3')
             ->join('trade trade',' trade.uid=mum.uid')
             ->join('buy buy',' buy.uid=mum.uid')
             ->field('mum.uid,mum.username,trade.tid,buy.trade')
             ->paginate(30)
             ->toArray();
        return $res;
      }

}